import request from '@/utils/request'

export function paymentList(data) {
  return request({
    url: '/payment',
    method: 'get',
    params: data
  })
}
export function createPayment(data) {
  return request({
    url: '/payment',
    method: 'post',
    data
  })
}
export function deletePayment(id) {
  return request({
    url: '/payment/' + id,
    method: 'delete'
  })
}
export function detailPayment(id) {
  return request({
    url: '/payment/' + id,
    method: 'get'
  })
}
export function getPaymentType() {
  return request({
    url: '/payment/getPaymentType',
    method: 'get'
  })
}
